package com.irs.irsforum.security.access;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author yihuili
 *
 * @since 2020-01-18
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Access {

    /**
     * Which user is allowed.
     *
     * @return
     */
    UserType[] userType();
}
